import math
import csv
import generatefeedvector as generate
import pandas as pd
import numpy as np
import json


# CREACIO DEL DATAFRAME 
unames = ['id_blog', 'partit_politic', 'nom', 'url']
df = pd.read_table('blogs.dat',sep='::', header=None, names=unames)

data_blogs = {}

with open('data_blogs.json', 'r') as f:
	data_blogs = json.load(f)